Repository navigation
feat(output): carry loop-closing commands in seam agent packets (#2630, #2669) - #2866
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reached
Next review available in: 11 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
Summary by CodeRabbit
WalkthroughAgent seam packets now provide conditional suggested-test metadata and repair-loop handoff commands. The renderer handles single-seam, multi-seam, static-limitation, and empty envelopes. Tests, traceability entries, and documentation cover the new output. ChangesAgent seam packet handoff
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant AgentSeamPacketRenderer
participant loop_commands
participant AgentSeamPacketEnvelope
AgentSeamPacketRenderer->>loop_commands: build snapshot, verification, and receipt commands
loop_commands-->>AgentSeamPacketRenderer: return shared command strings
AgentSeamPacketRenderer->>AgentSeamPacketEnvelope: render suggested test metadata and next bundle
Possibly related PRs
Suggested labels: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
CI failure diagnosis (2026-08-02)The This is a golden fixture mismatch — the PR adds verify/receipt commands to seam agent packets (#2630/#2669), which changes the expected output of Run |
There was a problem hiding this comment.
Actionable comments posted: 5
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@crates/ripr/src/output/agent_seam_packets.rs`:
- Around line 173-180: Finalize the output contract for the new next and
suggested_test_command fields in the repair-loop JSON emitted by
push_repair_loop_json and its surrounding output path. Resolve whether schema
version 0.3 remains valid or must be incremented, update the corresponding
schema definition, then re-bless all affected golden fixtures, including
editor_agent_loop_fixture_outputs_match_expected, against current main.
- Around line 207-218: Update the receipt construction in the
actionable-envelope flow to require actionable.len() == 1 before emitting
receipt_after_verify, rather than counting only write-targeted-test packets.
Preserve the existing single targeted-test receipt contents, keep the field null
for any multi-packet envelope, and add coverage for an envelope containing
targeted-test and inspect_static_limitation packets.
In `@docs/OUTPUT_SCHEMA.md`:
- Around line 12715-12721: Re-bless the affected golden fixture for
editor_agent_loop_fixture_outputs_match_expected against the current main branch
so it includes the new repair-loop commands, then verify the generated artifact
directly and update the documented output contract to match the re-blessed
result.
- Around line 12909-12916: The shared-handoff documentation uses packet field
names that do not match the working-set brief schema. Update
docs/OUTPUT_SCHEMA.md lines 12909-12916 and
docs/specs/RIPR-SPEC-0010-agent-working-set-brief.md lines 49-55 to consistently
describe next.inspect_packet, verification.before_snapshot_command,
verification.after_snapshot_command, verification.verify_command, and
next.write_receipt; alternatively, explicitly document the transformation
between these brief fields and the packet next contract.
- Around line 12717-12720: Update the documented workflow commands around
before_snapshot_command to create target/ripr/workflow and target/ripr/reports
before any shell redirection occurs. Ensure the preparatory step runs before the
snapshot commands, so both verify output and receipt output destinations already
exist.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: d2b88107-6add-4cc8-8c25-66fa720f9312
📒 Files selected for processing (4)
.ripr/traceability.tomlcrates/ripr/src/output/agent_seam_packets.rsdocs/OUTPUT_SCHEMA.mddocs/specs/RIPR-SPEC-0010-agent-working-set-brief.md
Review repairs at
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
Maintainer inspection — exact head 54641be1066f2923743b5dc66fe7a52c81979106
Inspected:
agent_seam_packets.rsreceipt selection, mixed/static/multi/empty packet paths, and focused tests;- shared loop-command reuse and artifact path ordering;
OUTPUT_SCHEMA.mdand RIPR-SPEC-0010 field names and projection wording;- traceability registration;
- candidate packet golden parsed as JSON and checked for the exact emitted
nextand suggested-test fields.
Findings addressed in the current candidate:
- seam receipts are now limited to exactly one actionable packet;
- first snapshot preparation creates both redirected-output directories;
- schema remains
0.3under the repository's additive-field rule; - suggested test remains advisory and explicitly not evidence that the test exists or ran.
No additional actionable finding in this inspection. Local Rust execution is unavailable after bounded attempts because of Windows linker file-lock errors; hosted exact-head fixture/test proof remains required.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Hosted compile repair at
|
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c61121b397
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| /// workspace path of its own, and the receipt command already projected | ||
| /// through `evidence_record` uses the same `--root .`, so the whole | ||
| /// envelope stays consistent for an agent running from the workspace root. | ||
| const REPAIR_LOOP_ROOT: &str = "."; |
There was a problem hiding this comment.
Preserve the analyzed workspace root in loop commands
Failure mode: when ripr agent packet --root fixtures/boundary_gap/input --seam-id 67fc764ba37d77bd --json is invoked from the repository root—or whenever --root differs from the current directory—the new next commands hard-code --root . and relative artifact paths, so copying them snapshots and verifies the caller's current workspace rather than the workspace that produced the packet, potentially issuing a receipt for unrelated evidence. Fix direction: thread the analyzed root into this renderer and emit commands whose root, working directory, and redirected artifacts consistently refer to it; validate with a CLI regression that invokes agent packet from outside the requested root and executes the generated loop. This repository explicitly requires emitted commands to enforce the contract they claim. Confidence: High; the command above reproduces the packet with --root . despite the requested fixture root.
AGENTS.md reference: AGENTS.md:L262-L272
Useful? React with 👍 / 👎.
Summary
Status: draft; implementation and documentation are updated, but the hosted
golden/fixture proof must complete before merge.
This PR carries the repair loop into seam-agent packets for #2630 and #2669:
actionable packets include an advisory suggested test filter and a shared
snapshot/verify/receipt handoff. The receipt is emitted only for a single
actionable envelope; mixed and multi-seam envelopes remain unscoped.
Swarm / Source Boundary
This is ordinary same-repo
ripr-swarmanalyzer/output and documentation work.It does not touch crates.io, editor marketplace, release assets, signing, or
release secrets.
Source-of-truth Links
Spec:
docs/specs/RIPR-SPEC-0010-agent-working-set-brief.mdIssue: #2630, #2669
Active goal: #2829
Release disposition: hold_post_release; do not include in the 0.11 candidate.
Scope
agent-seam-packets-json.0.3; the additions are compatible additive fields underthe repository's existing packet contract.
Scope Classification
This PR is scoped by:
Production delta:
crates/ripr/src/output/agent_seam_packets.rscrates/ripr/src/agent/loop_commands.rsEvidence/support delta:
docs/OUTPUT_SCHEMA.mddocs/specs/RIPR-SPEC-0010-agent-working-set-brief.md.ripr/traceability.tomlfixtures/boundary_gap/expected/editor-agent-loop/agent-packet.jsonSingle acceptance criterion: the candidate-produced packet JSON, golden
fixture, schema documentation, and focused tests agree on the repair-loop
contract.
Non-goals:
suggested_test_command.ripr agent verifyexecution semantics.Support-tier Impact
Claim/proof notes: the suggested command is advisory and is explicitly marked
runnable_after_the_suggested_test_exists; it is not a test receipt.Policy Impact
No new exception, dependency, process, or network surface is introduced.
Proof
cargo fmt --all -- --check git diff --check cargo test -p ripr agent_seam_packets cargo xtask goldens check cargo xtask check-no-panic-family cargo xtask check-static-language cargo xtask check-allow-attributesResults:
b552feb1f.errors (
LNK1104) prevented a trustworthy local binary.identified the expected packet golden as stale.
b552feb1f: in progress; it must provide thecandidate-produced golden/fixture result.
Claim Boundary
After merge this proves the output contract and its fixture/test alignment. It
does not prove runtime test adequacy, mutation confirmation, merge approval for
downstream consumers, or release inclusion.
Rollback
Revert the squash merge. This removes the additive packet fields, loop-command
projection, documentation, traceability entry, and golden update together.
Spec-Test-Code Traceability
agent_seam_packetstests, including mixed-envelope receiptnullability
agent_seam_packets.rs, sharedloop_commands.rsfixtures/boundary_gap/expected/editor-agent-loop/agent-packet.jsonStatic Language Check
CI Economics
fixture proof remains required because the local golden gate previously missed
this drift.
until terminal.
Engineering Check
Gates
cargo fmt --all -- --checkgit diff --checkcargo xtask goldens checkon exact candidate environment